﻿<html>
    <head>
        <title>Блог</title>
        <link rel='stylesheet' type='text/css' href='main.css'> 
    </head>
    
    <body>
        <div class='hat'><a href='index.php'>Блог</a></div>
        <div class='ed_place'>
        <ul class='ed_form'>
        <form action='index.php?controller=edit' method='post'>
            <?if (isset($this->editArt->notice)) { ?> 
            <?='<li><b>' . $this->editArt->notice . '</b><br><br>';?>
            <? } ?>
            <li><input type='hidden' name='id' value='<?=$this->editArt->id?>'>
            <li>Тема: <input type='text' name='subject' value="<?=$this->editArt->subject?>"><br><br>
            <!--метод вместо implode -->
            <li>Теги: <input type='text' name='tags' value="<?=$this->editArt->getStringTags()?>"><br><br>
            <li><textarea name="text" cols='35' rows='10'><?=$this->editArt->text?></textarea><br><br>
            <li><input type='submit' value='Редактировать'>
            <input type='button' value='Отмена' onclick="location.href='index.php'; return false;">
        </ul>
        </div>
    </body>
</html>